package com.zmc.member.infrastructure.dao;

import com.zmc.member.infrastructure.entity.MemberCollectEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 会员收藏的商品
 * 
 * @author zmc
 * @email 
 * @date 2024-10-09 14:56:33
 */
@Mapper
public interface MemberCollectDao extends BaseMapper<MemberCollectEntity> {

    @Delete("delete from ums_member_collect where member_id = #{memberId} and sku_id = #{skuId}")
    void removeBySku(@Param("memberId") String memberId,@Param("skuId") String skuId);
}
